<template>
  <div class="school">
    <h2>学校名称:{{ name | mySlice }}</h2>
    <h2>学校地址:{{ address }}</h2>
    <button @click="test">测试hello</button>
  </div>
</template>

<script>
export default {
  name: "SchoolVue",
  data() {
    return {
      name: "培立优peiliyou",
      address: "三箭银苑",
    };
  },
  methods: {
    test() {
      this.hello();
    },
  },
};
</script>

<style>
.school {
  background-color: gray;
}
</style>